package com.my.dao;

import com.my.entiy.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * Created by Administrator on 2017/10/31.
 */
public interface UserDao {
//    @Select("select * from sec_user where id=#{id}")//mybatis的注解
    public User findUser(@Param("id") int id);

//    @Insert("insert into sec_user(id,user_name) values(#{id},#{user_name})")
    public void add(User user);
}
